﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Site.master" AutoEventWireup="true" CodeBehind="CateNews.aspx.cs" Inherits="Indochinaodyssey.Admin.CateNews" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            font-size: large;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div>
        <span class="style1"><strong>Quản lý loại tin</strong></span><br />
        <asp:ObjectDataSource ID="odsCateNews" runat="server" 
            DataObjectTypeName="IOEntity.clsCateNew" DeleteMethod="Delete" 
            InsertMethod="Insert" SelectMethod="GetAll" TypeName="IOBusiness.clsBSCateNew" 
            UpdateMethod="Update"></asp:ObjectDataSource>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="TextBox1" runat="server" Width="500px"></asp:TextBox>
&nbsp;
        <asp:Button ID="btnSave" runat="server" onclick="btnSave_Click" Text="Thêm Mới" 
            Width="100px" />
        <br />
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
            AutoGenerateColumns="False" CellPadding="4" DataSourceID="odsCateNews" 
            GridLines="None" Width="100%" ForeColor="#333333" DataKeyNames="Id">
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            <Columns>
                <asp:BoundField DataField="Id" HeaderText="Mã" SortExpression="Id">
                <ItemStyle Width="30px" />
                </asp:BoundField>
                <asp:BoundField DataField="TieuDe" HeaderText="Tiêu Đề" 
                    SortExpression="TieuDe" />
                <asp:CommandField DeleteText="Xóa" EditText="Sửa" ShowDeleteButton="True" 
                    ShowEditButton="True">
                <ItemStyle Width="100px" />
                </asp:CommandField>
            </Columns>
            <EditRowStyle BackColor="#999999" />
            <FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#E9E7E2" />
            <SortedAscendingHeaderStyle BackColor="#506C8C" />
            <SortedDescendingCellStyle BackColor="#FFFDF8" />
            <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
        </asp:GridView>
    </div>
</asp:Content>
